package com.g2.rpc.remoting.netty;

import com.g2.rpc.remoting.*;

import java.net.URI;

/**
 * 描述:
 * ${DESCRIPTION}
 *
 * @author lingjiu.kong
 * @version 1.0
 * @date 2021-03-09 23:06
 */
public class Netty4Transporter implements Transporter {
    @Override
    public Server start(URI uri, Codec codec, Handler handler) {
        return null;
    }

    @Override
    public Client connect(URI uri, Codec codec, Handler handler) {
        NettyClient nettyClient = new NettyClient();
        nettyClient.connect(uri, codec, handler);
        return nettyClient;
    }
}
